<template>
  <div id="nav">
    <router-view></router-view>
    <playController></playController>
  </div>
</template>
<script>
import playController from './views/playController.vue'
export default {
  components: {
    playController
  },
  mounted () {
    if (localStorage.userData != null) {
      const userData = JSON.parse(localStorage.userData)
      // console.log(userData)
      this.$store.commit('setUser', userData)
    }
  }
}
</script>
<style lang="less">
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: '微软雅黑';
}
.nav{
  width: 7.5rem;
}
.icon{
    width: 0.30rem;
    height: 0.3rem;
}
a{
  color: #333;
  text-decoration: none;
}
</style>
